<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<body>
	    <rich:panel rendered="#{autenticacaoController.autenticado}">
	        <h:form>
	            <h:commandButton value="Sair" action="#{autenticacaoController.sair}"/>
	        </h:form>
	    </rich:panel>
	    <rich:panel rendered="#{false eq autenticacaoController.autenticado}">
	        <h:form>
	            <h:panelGrid columns="2">
	                <h:outputText value="Login"/>
	                <h:inputText value="#{autenticacaoController.email}"/>
	                <h:outputText value="Senha" />
	                <h:inputSecret value="#{autenticacaoController.senha}" />
	            </h:panelGrid>
	            <h:commandButton value="Acessar" action="#{autenticacaoController.acessar}"/>
	        </h:form>
	    </rich:panel>
	</body>	
</html>